package test4

class UsbMouse(n:String,t:String,d:Double) extends Usb {
  override val name: String = n
  override val types: String = t
  override val DV: Double = d

  override def plugin(): Unit = {
    println("usb鼠标"+name+"接入了设备，工作电压是"+DV)
  }

  override def unplugin: Unit = {
    println("usb鼠标"+name+"从设备上移除了")
  }
}
